clc
clear
close all
[block_size, LL_space, iNode_space] = textread('space.txt', '%u %u %u');
plot(block_size, LL_space, 'color', 'red', 'LineWidth', 2)
xlabel('\fontsize{14}Block size [bytes]');
ylabel('\fontsize{14}Used space size [bytes]');
title('\fontsize{20} Plot of used size Vs block size') ;
text(1000,382000000,'\fontsize{14}\leftarrow FAT File System','HorizontalAlignment','left')

hold on
plot(block_size, iNode_space, 'color', 'blue', 'LineWidth', 2)
text(1000,391000000,'\fontsize{14}\leftarrow INode File System','HorizontalAlignment','left')

print('-djpeg', 'space.jpg');

figure(2)

clear 
[block_size, LL_avg, iNode_avg] = textread('access.txt', '%u %f %f');
plot(block_size, LL_avg, 'color', 'red', 'LineWidth', 2)
xlabel('\fontsize{14}Block size [byte]');
ylabel('\fontsize{14}Avrage access to disk  [ 1 / byte]');
title('\fontsize{20} Plot of Avrage number of disk access Vs block size') ;
text(65,370,'\fontsize{14}\leftarrow FAT File System','HorizontalAlignment','left')

hold on
plot(block_size, iNode_avg, 'color', 'blue', 'LineWidth', 2)
text(50,30,'\fontsize{14}\downarrow INode File System','HorizontalAlignment','left')


print('-djpeg', 'access.jpg');
